<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/common.jsp" %>
<!DOCTYPE HTML>
<html>
<head>
	<title>字典管理</title>
	<link href="${prcs}/css/def/ztree/metro.css" rel="stylesheet">
	<link href="${prcs}/css/def/bootstrap/ace/ace-part2.min.css" rel="stylesheet">
    <link href="${prcs}/css/def/bootstrap/ace/ace.css" rel="stylesheet">
    <link href="${prcs}/css/def/bootstrap/ace/ace-ie.min.css" rel="stylesheet">
	<link href="${prcs}/css/def/frm/common/common.css" rel="stylesheet">
	<script src="${prcs}/js/jquery/plugin/jquery.ztree.all-3.5.min.js"></script>

		<style>
		table td {
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
			text-align: center;
			font-size: 13px !important;
		}

		table th {
			text-align: center;
			font-size: 13px !important;
		}
		table.table-bordered.dataTable tbody td{
		    border-bottom:1px solid #ddd;
		}
</style>
</head>
<body>
<div id="dictMana">
	<div class="head-title" id="dictManage">
		<span>字典管理</span>
	</div>
	<!-- 主页面展示 -->
	<div class="row top-row">
		<!-- 字典树信息 -->
		<div class="col-sm-4">
			<ul id="dictTree" class="ztree" style="width:300px;height:560px; overflow:auto;"></ul>
		</div>
		<!-- 字典树信息  结束-->
		
		<div class="col-sm-8">
			<div class="row">
				<form class="form-inline form-left" method="post" id="searchDictForm" action="${prc}/sysDict/editDict">
					<div class="input-group col-md-3 free-3" style="margin-right:20px;">
				        <label class="input-group-addon" for="sysDictName" >字典名称</label>
						<input type="text" class="form-control" name="dictName"  size="30px" id="dictName"  maxlength="20">
					</div>
<!-- 					<div class="input-group col-md-3 free-3" style="margin-right:20px;">	
						<label class="input-group-addon" for="sysDictCode" >字典编号</label>
						<input type="text" class="form-control" name="dictCode"  size="30px" id="dictCode"  maxlength="20">
					</div> -->
					<div class="div-button col-md-pull-3">
					    <a type="button" class="btn btn-info" onclick="searchDict()"><i class="ace-icon glyphicon glyphicon-search"></i>查询</a>
					    <a type="button" class="btn btn-info" onclick="searchDictReset();"><i class="ace-icon glyphicon glyphicon-repeat"></i>重置</a>
					    <a type="button" class="btn btn-success" onclick="goNewDict()"><i class="ace-icon glyphicon glyphicon-plus align-top bigger-125"></i>新增</a>
					</div>
				</form>
			 </div>
			<hr>
			<!-- 字典信息展示 -->
			<div class="row">
				<table id="dictTable" class="display table table-bordered" style="border-collapse: collapse;" width="100%">
					<thead>
						<tr>
                            <th></th>
		                    <th>操作</th>
							<th>编号</th>
		                    <th>名称</th>
		                    <th>值</th>
		                    <th>类型</th>
		                    <th>顺序</th>
						</tr>
					</thead>
				</table>
			</div>
			<!-- 字典信息展示 结束 -->
		</div>	
	</div>
</div>
	<!-- 主页面展示结束 -->
	
	
	<!-- 修改模态框 开始 -->
<%-- 	 <div class="modal fade " id="editDictModal" tabindex="-1" role="dialog">
		<div class="orderchek-body">
			<div class="orderchek-border">
				<div class="orderchek-title" class="modal-title" id="permModalLabel" style="width:auto;display:none;">
					字典信息修改
				</div>
				<div class="orderchek-title" class="modal-title" id="permModalLabel1" style="width:auto;display:none;">
					字典信息新增
				</div>  
				<form  class="form-horizontal" role="form" id="editDictForm">  
			        <div id="dictModalTitle" class="orderchek-title"></div> 
						<div class="ordercheck-table table-responsive">
							<div class="demo-row modal-body" id="dictField" >
								<div class="form-group">
									<div class="input-group">
										<label for="name" class="input-group-addon update">字典编号</label>
						      			<input type="text" class="form-control update" name="dictId" id="dictId" placeholder="字典编号" readonly="readonly">
						    		</div>
						 	 	</div>
								<div class="form-group">
									<div class="input-group">
						    			<label class="input-group-addon">父字典编号</label>
					      				<input type="text" class="form-control" name="dictParentId"  placeholder="父字典编号" id="dictParentId">
						    		</div>
						 	 	</div>
						  		<div class="form-group">
						  			<div class="input-group">
						    			<label for="org_id" class="input-group-addon">字典名称</label>
						    			<input type="text" class="form-control" name="dictLabel" id="dictLabel" maxlength="20"  placeholder="字典名称">
						    		</div>
						  		</div>
						  		<div class="form-group">
						  			<div class="input-group">
						    			<label class="input-group-addon">字典值</label>
					      				<input type="text" class="form-control" name="dictValue" placeholder="字典值" maxlength="20" id="dictValue">
						    		</div>
						  		</div>
						  		<div class="form-group">
						  			<div class="input-group">
						    			<label class="input-group-addon">类型</label>
					      				<input type="text" class="form-control" name="dictType" placeholder="类型" maxlength="20" id="dictType">
						    		</div>
					    		</div>
						  		<div class="form-group">
						  			<div class="input-group">
					      				<label class="input-group-addon">顺序</label>
					      				<input type="text" class="form-control" name="dictSort" placeholder="顺序" maxlength="20" id="dictSort">
						    		</div>
					    		</div>
						  		<div class="form-group">
						  			<div class="input-group">
						    			<label class="input-group-addon">描述</label>
					      				<input type="text" class="form-control" name="dictDesc" placeholder="字典描述" maxlength="50" id="dictDesc">
						    		</div>
					    		</div>
					    		<!-- <div class="form-group">
						  			<div class="input-group">
						    			<label class="input-group-addon update">创建人</label>
					      				<input type="text" class="form-control update" name="createBy" id="createBy" readonly="readonly">
					      				<label class="input-group-addon update">创建时间</label>
					      				<input type="text" class="form-control update" name="createDate1" id="createDate" readonly="readonly">
						    		</div>
					    		</div> -->
					    		<div align="center"> 
									<button type="submit" class="btn btn-primary add" id="addBtn" onclick="ifclick()">提交</button>
									<button type="submit" class="btn btn-primary update" id="updateBtn" onclick="ifclick1()">修改</button>
									<button type="button" class="btn btn-primary"  onclick="goBack()">返回</button>        
					      		</div>  
					    	</div>
					</div>
				</form>
			</div>
		</div>	
	</div> 
	 --%>
	
	
<div class="container-fluid staffUpdate" id="editDictModal" style="display:none;"> 
	<div class="orderchek-border">
	         
		<form  class="form-horizontal" role="form" id="editDictForm">
			<div class="orderchek-border">
			<div class="orderchek-title" class="modal-title" id="permModalLabel" style="width:auto;display:none;">
					字典信息修改
			 </div>
			 <div class="orderchek-title" class="modal-title" id="permModalLabel1" style="width:auto;display:none;">
					字典信息新增
			 </div> 
	        <div id="roleModalTitle" class="orderchek-title"></div>
				<div class="ordercheck-table table-responsive">
					<div class="demo-row modal-body" id="dictField" >
					    <div class="form-group">
									<div class="input-group">
										<label for="name" class="input-group-addon update">字典编号</label>
						      			<input type="text" class="form-control update" name="dictId" id="dictId" placeholder="字典编号" readonly="readonly">
						    		</div>
						 	 	</div>
						<div class="form-group">
							<div class="input-group">
								<label  class="input-group-addon">父字典编号<span class="notNull">*</span></label>
					      		<input type="text" class="form-control" name="dictParentId"  placeholder="父字典编号" id="dictParentId">
				  			</div>
				 	 	</div>
				  		<div class="form-group">
				  			<div class="input-group">
				    			<label for="org_id" class="input-group-addon">字典名称<span class="notNull">*</span></label>
						    	<input type="text" class="form-control" name="dictLabel" id="dictLabel" maxlength="20"  placeholder="字典名称">
				    		</div>
				  		</div>
				  		<div class="form-group">
				  			<div class="input-group">
				    			<label class="input-group-addon">字典值<span class="notNull">*</span></label>
					      		<input type="text" class="form-control" name="dictValue" placeholder="字典值" maxlength="20" id="dictValue">
				    		</div>
				  		</div>
				  		<div class="form-group">
				  			<div class="input-group">
				    			<label class="input-group-addon">类型<span class="notNull">*</span></label>
					      		<input type="text" class="form-control" name="dictType" placeholder="类型" maxlength="20" id="dictType">
				    		</div>
				  		</div>
				  		<div class="form-group">
				  			<div class="input-group">
				    			<label class="input-group-addon">顺序<span class="notNull">*</span></label>
					      		<input type="text" class="form-control" name="dictSort" placeholder="顺序" maxlength="20" id="dictSort">
				    		</div>
				  		</div>
				  		<div class="form-group">
				  			<div class="input-group">
				    			<label class="input-group-addon">描述<span class="notNull">*</span></label>
					      		<input type="text" class="form-control" name="dictDesc" placeholder="字典描述" maxlength="50" id="dictDesc">
				    		</div>
				  		</div>
				  		
			    		<div align="center"> 
								<button type="submit" class="btn btn-primary add" id="addBtn" onclick="ifclick()">提交</button>
								<button type="submit" class="btn btn-primary update" id="updateBtn" onclick="ifclick1()">修改</button>
								<button type="button" class="btn btn-primary"  onclick="goBack()">返回</button>        
					    </div>  
			    	</div>
			</div>
			</div>
		</form>
	</div>
</div>
	<!-- 修改模态框 结束 -->
</body>
	<script src="${prcs}/js/frm/sys/sysDictManage.js"></script>
</html>